<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="pojo.User" %>
<%@ page import="utils.db.impl.UserFetcher" %>
<%@ page import="java.util.List" %>
<script  type="text/javascript" src="js/clearText.js"></script>

<%
User user=(User)session.getAttribute("user");

%>
<%if (session.getAttribute("user") == null) {%>
<h1>Brak dostępu do tej strony!</h1>
<%}else{ 
%>
<h1>Formularz Kontaktowy</h1>
<div id="gallery_container">

<form action="SendMessageToAdminServlet" method="POST">
<table>
			
			<tr>
			<td><label class="panel" for="login">Temat: </label></td>
			<td>
			<input type="text" name="topic" id="topic" onfocus="clearText(this)" onblur="clearText(this)" value="Temat..."/>
			</td>
			</tr>
		
			<tr>
			<td><label class="panel" for="login">Wiadomość: </label></td>
			<td>
			<textarea rows="10" cols="50" name="message" id="message" onfocus="clearText(this)" onblur="clearText(this)">Wiadomość...</textarea>
			</td>
			</tr>
			
</table>
<center><input type="submit" id="submit" class="styled-button-3" value="Wyślij" /></center>
</form>
													<%
		if (session.getAttribute("warning") != null) {
	%>
	<span><%= session.getAttribute("warning") %></span> 
	<%
		session.removeAttribute("warning");
		}
	%>

</div>
<%} %>